from marshmallow import fields
from gis.common.django_ext.forms import PaginationSchema, BaseSchema


class AdminAccountListSchema(PaginationSchema):
    pass


class AddAdminAccountSchema(BaseSchema):
    name = fields.String(required=True)
    password = fields.String(required=True)


class UpdateAdminAccountSchema(BaseSchema):
    use_vcode = fields.Boolean()

